class Ncl;
class Text : public Ncl
{
	int x,y,h,w,z;
public:
	// In others ncl object creation the media is started or not
  	Text(string id, boost::shared_ptr<NclCache>& cache):Ncl(id, cache)
	{
		Ncl::type=TXT;
		dbg.log(__PRETTY_FUNCTION__, "Media Type:" + to_string(type) );
		setBounds();
	}

	void setBounds()
	{
		x=boost::lexical_cast<int>(Ncl::ncl_cache->getRegionAttrib("x", Ncl::str_id));	
		y=boost::lexical_cast<int>(Ncl::ncl_cache->getRegionAttrib("y", Ncl::str_id));	
		h=boost::lexical_cast<int>(Ncl::ncl_cache->getRegionAttrib("h", Ncl::str_id));	
		w=boost::lexical_cast<int>(Ncl::ncl_cache->getRegionAttrib("w", Ncl::str_id));	
		z=boost::lexical_cast<int>(Ncl::ncl_cache->getRegionAttrib("z", Ncl::str_id));	
		
		dbg.log(__PRETTY_FUNCTION__, "Bounds:" + to_string(x) + "," + to_string(y) + "," + to_string(h) + "," + to_string(w) + "," + to_string(z) );
	}

	void start()
	{
		Ncl::start();
		string text=Ncl::ncl_cache->getMediaSrc(str_id);
		dbg.log(__PRETTY_FUNCTION__, "Text Starting:" + text );
	}
};
